// src/components/auth/logout-button.tsx
'use client';
import React from 'react';
import {logout} from "@/actions/logout";

const LogoutButton = ({children}: { children?: React.ReactNode }) => {
    const onClick = () => {
        logout()
    }

    return (
        <span onClick={onClick} className={`cursor-pointer`}>
            {children}
        </span>
    );
};

export default LogoutButton;